package com.chhuang.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @TableName ch_user
 * @ClassName ChUser
 * @Description ch_user实体类(ChUser)
 * @Author Darren Huang
 * @Date 2022-11-21 18:15:50
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ToString
@TableName(value = "ch_user")
@ApiModel(value = "ChUser对象", description = "ChUser对象，用来对应数据库表ch_user")
public class ChUser extends Model<ChUser> implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 292844477945916969L;

    /**
     * 用户编号
     */
    @TableId(value = "user_id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "用户编号")
    private String userId;
    /**
     * 用户名
     */
    @TableField(value = "username")
    @ApiModelProperty(value = "用户名")
    private String username;
    /**
     * 密码
     */
    @TableField(value = "password")
    @ApiModelProperty(value = "密码")
    private String password;
    /**
     * 昵称
     */
    @TableField(value = "nickname")
    @ApiModelProperty(value = "昵称")
    private String nickname;
    /**
     * 姓
     */
    @TableField(value = "lastname")
    @ApiModelProperty(value = "姓")
    private String lastname;
    /**
     * 名
     */
    @TableField(value = "firstname")
    @ApiModelProperty(value = "名")
    private String firstname;
    /**
     * 性别：男1，女0
     */
    @TableField(value = "gender")
    @ApiModelProperty(value = "性别：男1，女0")
    private Byte gender;
    /**
     * 手机号
     */
    @TableField(value = "phone")
    @ApiModelProperty(value = "手机号")
    private String phone;
    /**
     * 电子邮箱号
     */
    @TableField(value = "email")
    @ApiModelProperty(value = "电子邮箱号")
    private String email;
    /**
     * 头像
     */
    @TableField(value = "photo")
    @ApiModelProperty(value = "头像")
    private String photo;
    /**
     * 修改时间
     */
    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date modifyTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
